package com.example.demo;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

//Rest模式
@RestController
@RequestMapping("/books")
public class SB1 {

    @GetMapping
    public String getById(){
        System.out.println("哈哈哈哈哈哈");
        return "哈哈哈哈哈哈";
    }
}
